var angular_frame_app = angular.module('angular_frame_app', [
  'ui.router', 
  'ui.router.state', 
  'ui.bootstrap',
  'ngSanitize',
  // angular-loading
  'services',
  'directives',
  'filters'
]);

angular_frame_app.config(function($httpProvider) {
  $httpProvider.defaults.useXDomain = true;
  delete $httpProvider.defaults.headers.common['X-Requested-With'];
});

angular_frame_app.config(function($urlRouterProvider) {
   $urlRouterProvider.otherwise("/angular_frame/dashboard");
 });

angular_frame_app.config(function($stateProvider) {
  $stateProvider
    .state("angular_frame", {
      url: "/angular_frame",
      templateUrl: "/frontend/views/index.html",
    })
});


/*创建services,filters,directives模块*/
angular.module('filters',[]);
angular.module('directives',[]);
angular.module('services',[])











